class Solution:
    def isPalindrome(self, x):
        """
        :type x: int
        :rtype: bool
        """
        x=list(str(x))
        flag=self.judgePalindrome(x)
        return flag

    def judgePalindrome(self,x):
        flag = False
        length = len(x)
        for i in range(0,length):
            j = length - i -1;
            if(i>=j):
                flag=True
                break
            else:
                if(x[i]!=x[j]):
                    break
        return flag
        

a = Solution()
print(a.isPalindrome(0))